{% extends "base.html" %}

{% block title %}用户登录 - {{ super() }}{% endblock %}

{% block content %}
    <form action="" method="post">
        <table>
            <tr>
                <td>用户名：</td>
                <td>
                    <input type="text" name="username" minlength="3" maxlength="15" pattern="^[a-z_]\w+$" required>
                </td>
            </tr>
            <tr>
                <td>密码：</td><td><input type="password" name="password" minlength="6" maxlength="20" required></td>
            </tr>
            <tr>
                <td valign="top">验证码：</td>
                <td valign="top">
                    <input type="text" name="captcha" maxlength="4" required><img src="/captcha" align="top">
                </td>
            </tr>
            <tr>
                <td></td><td><input type="submit" value="登录"></td>
            </tr>
        </table>

    </form>
{% endblock %}
